package com.lujianfei.android_1_glide;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.Environment;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

import java.io.File;

public class LocalActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_local);
        File imageFile = new File(Environment.getExternalStorageDirectory(),"Download/abc.jpg");
        ImageView iv_icon = findViewById(R.id.iv_icon);
        Glide.with(this).load(imageFile).into(iv_icon);
    }
}
